package org.uim.cricket.analyzer.analyze.impl;

import java.util.List;
import java.util.Map;

import org.uim.cricket.analyzer.analyze.Alogger;
import org.uim.cricket.entities.MatchPlayer;
import org.uim.cricket.entities.Player;
import org.uim.cricket.entities.match.CricketMatch;

public class ManOfTheMatchAnalyzer extends PlayerListFinderAnalyzer {

	@Override
	public void doAnalyze(CricketMatch match, Map<String, List<MatchPlayer>> players) throws Exception {
		if (players == null) return;
		if (match == null) return;
		
		try {
			
			if (match.getManOfTheMatch() == null) return;
			Player[] moms = match.getManOfTheMatch();
			Alogger.debug(" ***** Mapping man-of-the-match players... ");
			
			this.startFinding(players, moms);
			
		} catch (Exception ex) {
			
		}
		
		Alogger.debug("        Completed! ");
		
	}
	
}
